package com.cqemme.activitiservice.feign;

import com.cqemme.activitiservice.feign.fallback.ActivitiServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 学校服务
 *
 * @author daibin
 */
@FeignClient(value = "activiti-service", fallback = ActivitiServiceFallback.class)
public interface ActivitiServiceFeign {

    /**
     * 查询设备信息
     * @param processInstanceId 设备编号
     * @return 设备详情
     */
    @GetMapping(value = "/activiti/getTaskNode")
    String queryByDeviceNumber(@RequestParam(value = "processInstanceId") String processInstanceId);
}
